package com.itheima;

import com.itheima.domain.Account;
import com.itheima.service.AccountService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class DemoTest {
    public static void main(String[] args) {
        ApplicationContext a=new AnnotationConfigApplicationContext(SpringConfig.class);
        AccountService bean = a.getBean(AccountService.class);
        Account aa=new Account(6,"xiaozhu",15.0450);
        Account bb=new Account(7,"xiaozhu",15.0450);
        Account byid = bean.findByid(3);
        System.out.println(byid);
//


    }
}
